<!DOCTYPE html>

<html>
	<head>
		<link rel="stylesheet" href="../../../themes/themeroller/maemo5-theme/ui.all.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="../../../themes/nokia/ext-theme/maemo5/800x480/custom.css" type="text/css" media="screen" />

		<script src="../../../lib/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../lib/jquery/ui.core.position.js" type="text/javascript" charset="utf-8"></script>
		
		<script src="../../../src/defaults.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../src/core.js" type="text/javascript" charset="utf-8"></script>

		<style type="text/css" media="screen">
			body {
				font-size: 20px;
				padding: 15px;
				max-width: 640px;
				font-family: "Trebuchet MS", "Helvetica", "Arial",  "Verdana", "sans-serif";
			}

			p {
				margin: 30px 10px;
				text-align: justify;
			}

			#container {
				display: block;
				padding: 10px;
				text-align: center;
				text-decoration: none;
			}

		</style>

	</head>

	<body>

		<p>
			Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip exquis nostrud exercitation ullamco laboris nisi ut aliquip ex <a href="javascript:void(0);" id="tooltip2">Lorem Ipsum</a> ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
		</p>

		<a id="container" class="ui-widget-content" href="javascript:void(0);">Click me</a>

		<script type="text/javascript" charset="utf-8">

			var init = function() {
				
				window.tooltip1 = new Nokia.Tooltip({
					element: '#container',
					description: 'Click here',
					create: function() {
						console.log("Tooltip: create.");
					}
				});

				window.tooltip2 = new Nokia.Tooltip({
					element: '#tooltip2',
					description: 'This is a very large tooltip explanation that never ends...',
					direction: 'above right',
					timeout: 8000,
					//zIndex: 200,
					create: function() {
						console.log("Tooltip: create.");
					}
				});
				
				/*
				 * Hide splash when its all done.
				*/
				
				Nokia.hideSplash();

			};
			
			/*
			 * Show splash while loading components.
			*/
				
			Nokia.showSplash('<span>loading</span>');
			
			Nokia.use('tooltip', init);

		</script>

	</body>
</html>